<template>
	<view>
		<uni-nav-bar left-icon="left"  :statusBar="true" titleSize="30px" leftText="返回"   title="地图"  @clickLeft="back" :fixed="true" backgroundColor="#3286ed" color="#fff"/>
		
	</view>
</template>

<script>
	import amapFile from '@/libs/amap-wx.130.js'
	export default {
		data() {
			return {
				latitude:'',
				longitude:'',
				value:'',
			}
		},
		onReady() {
			this.createMap()
		},
		methods: {
			back(){
				uni.switchTab({
					url:'/pages/index'
				})
			},
			createMap() {
				uni.chooseLocation({
					success: function (res) {
						console.log('位置名称：' + res.name);
						console.log('详细地址：' + res.address);
						console.log('纬度：' + res.latitude);
						console.log('经度：' + res.longitude);
					}
				});
			}
		}
	}
</script>

<style>
	.view-container {
		
	}
	.view-map-contaier {
		width: 750rpx;
		height: 500px;
		background-color: aqua;
	}
	
	.input{
		height:40px;
		background-color: #fff;
		padding: 10px;
	}
</style>

